package valentini.android.strike;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Vibrator;
import android.widget.Toast;

public class BootCompletedIntentReceiver extends BroadcastReceiver {  
 @Override  
 public void onReceive(Context context, Intent intent) {  
	 //android.intent.action.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
	 //android.intent.action.BOOT_COMPLETED
  if ( ("android.net.conn.CONNECTIVITY_CHANGE".equals(intent.getAction())) || ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction()))){  
   Intent pushIntent = new Intent(context, BackgroundService.class);  
   context.startService(pushIntent);  
  }  
 }  
}  